package org.forex.impl.ws;

import java.io.IOException;
import java.util.Optional;

import org.forex.vo.Order;

public class DeleteOrder extends AbstractHttpCallImpl<Order> {

	private static String accountId="9646994";

	public DeleteOrder() {
		super(Order.class);
	}

	public Optional<Order> delete(Order order) throws IOException{
		return call("/v1/accounts/"+accountId+"/trades/"+order.getId());
	}

	@Override
	public String getHttpMethod() {
		return DELETE;
	}

}
